Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

252
Visualizações
How can I debug "Exception while resolving variable in template 'unknown'"?

I keep seeing

DEBUG Exception while resolving variable 'exception_type' in template 'unknown'.

in my django logs, followed by

VariableDoesNotExist: Failed lookup for key [exception_type] in

followed by what looks like a string representation of a a list of dictionaries containing the request, and my entire settings.py file.

Another example:

DEBUG Exception while resolving variable 'lastframe' in template 'unknown'

I feel like I just don't have enough information to debug this. All I know is there's a variable called exception_type in an unknown template. My code doesn't contain the string 'exception_type' anywhere.

How can I debug this? Where should I be looking?

  • Ubuntu 14.04
  • Python 2.7.6
  • Django 1.11
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

The point wasn't variable lastframe or variable exception_type you gotta checkout your url, all of the urls, not just back-end url but also the front-end url. Check out the front-end urls and middleware (if you wrote your own middleware files, the best check way is testing admin on your url). I got the same kind of question, when I checked url and middleware, I solved the issue easily.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda